#ifndef ITEMBODY_H
#define ITEMBODY_H

#include <QObject>
#include <QWidget>
#include <QHBoxLayout>

#include <QFrame>
#include <QLabel>
#include "../QLight.h"
#include "ItemData.h"

class ItemBody : public QFrame
{
    Q_OBJECT

public:

    explicit ItemBody(QWidget *parent = 0);

    void setName(const QString &name);

    void setStatus(WorkStatus selected);
private:
    void initUI();
    QLight *light ;
    QLabel *des ;
    QHBoxLayout *layout;
};

#endif // ITEMBODY_H
